package cn.itcast.dubbo.service.impl;

import cn.itcast.dubbo.pojo.User;
import cn.itcast.dubbo.service.ApiUserService;
import cn.itcast.dubbo.service.UserService;
import com.alibaba.dubbo.config.annotation.Reference;
import org.springframework.stereotype.Service;

/**
 * @author Hujf
 * @title: UserServiceImpl
 * @description: TODO
 * @date 2020/7/21 0021下午 5:00
 */

@Service
public class UserServiceImpl implements UserService {

    @Reference(version = "1.0.0", loadbalance = "roundrobin")
    private ApiUserService apiUserService;

    public UserServiceImpl(){
        System.out.println();
    }
    @Override
    public User getUser() {
        return apiUserService.getUser();
    }
}
